#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->label->setAlignment(Qt::AlignRight|Qt::AlignTop);
    //设置缩进
    ui->label_2->setIndent(20);
    //设置自动换行
   ui->label_3->setWordWrap(true);
  //设置边距
   ui->label_4->setMargin(50);
}

Widget::~Widget()
{
    delete ui;
}

